﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Caculatorlib
{
    public class cl_20190440423_div : cl_20190440423_caculate
    {
        public double Calculate(double x, double y)
        {
            var result = 0.0;
            if (Math.Abs(y) - double.Epsilon > 1e-6)
            {
                return x / y;

            }
            else
            {
                throw new DivideByZeroException("你的除数为0...");
            }
            return result;
        }
    }
}